package com.bw.a3_27zk.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter

 class FragmentAdapter(fragmentActivity: FragmentActivity, var list: List<Fragment>): FragmentStateAdapter(fragmentActivity) {
     override fun getItemCount(): Int = list.size

     override fun createFragment(position: Int): Fragment = list.get(position)

 }